<form name="child_list" action="index.php" enctype="multipart/form-data" method="post">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="payment">
<input name="act" type="hidden" value="save">
<input name="gateway" type="hidden" value="hanza">
<input name="referer" type="hidden" value="{ext->get_referer}">
{ext->class_function class="payment" func="get_gateway_data" gateway="hanza" assign="hanza_data"}
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF; border:15px solid #FFFFFF;">
	<tr>
		<td height="20" width="220">{t t="Merchant is ID"} (SITESHOP)</td>		
		<td><input type="text" name="VK_SND_ID" maxlength="10" class="defaultInputText" style="width:300px;" value='{if $hanza_data.VK_SND_ID}{$hanza_data.VK_SND_ID|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="20" width="220">{t t="Number of recipient is account"} (1234567890)</td>		
		<td><input type="text" name="VK_ACC" maxlength="16" class="defaultInputText" style="width:300px;" value='{if $hanza_data.VK_ACC}{$hanza_data.VK_ACC|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="20">{t t="Name of recipient"} (JustPageIt)</td>		
		<td><input type="text" name="VK_NAME" maxlength="30" class="defaultInputText" style="width:300px;" value='{if $hanza_data.VK_NAME}{$hanza_data.VK_NAME|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="20">{t t="Preferred language of communication"}</td>		
		<td>
			<select style="width:100px; margin:2px 20px 2px 0px;" name="VK_LANG">					
				<option value="LTL"{if $hanza_data.VK_LANG == 'LTL'} selected{/if}>LTL</option>
				<option value="ENG"{if $hanza_data.VK_LANG == 'ENG'} selected{/if}>ENG</option>
				<option value="RUS"{if $hanza_data.VK_LANG == 'RUS'} selected{/if}>RUS</option>
				<option value="EST"{if $hanza_data.VK_LANG == 'EST'} selected{/if}>EST</option>
			</select>		
		</td>
	</tr>
	<tr>
		<td height="20">{t t="Name of currency"}</td>		
		<td>
			<select style="width:100px; margin:2px 20px 2px 0px;" name="VK_CURR">					
				<option value="LTL"{if $hanza_data.VK_CURR == 'LTL'} selected{/if}>LTL</option>
				<option value="USD"{if $hanza_data.VK_CURR == 'USD'} selected{/if}>USD</option>
				<option value="EUR"{if $hanza_data.VK_CURR == 'EUR'} selected{/if}>EUR</option>
			</select>		
		</td>
	</tr>
	<tr>
		<td height="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="20" width="220">{t t="Payment URL"} (https://lt.hanza.net/...)</td>		
		<td><input type="text" name="PayURL" maxlength="255" class="defaultInputText" style="width:500px;" value='{if $hanza_data.PayURL}{$hanza_data.PayURL|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="20">{t t="Url then OK"}</td>		
		<td><input type="text" name="URL_OK" maxlength="255" class="defaultInputText" style="width:500px;" value='{if $hanza_data.URL_OK}{$hanza_data.URL_OK|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="20">{t t="Url then CANCEL"}</td>		
		<td><input type="text" name="URL_CANCEL" maxlength="255" class="defaultInputText" style="width:500px;" value='{if $hanza_data.URL_CANCEL}{$hanza_data.URL_CANCEL|escape:"html"}{/if}'></td>
	</tr>
	<tr>
		<td height="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="20">{t t="Target"}</td>		
		<td>
			<input type="radio" name="target" style="width:20px;" value='_self'{if $hanza_data.target == '_self' || $hanza_data.target != '_hanza'} checked{/if}> - {t t="_self"}<br>
			<input type="radio" name="target" style="width:20px;" value='_hanza'{if $hanza_data.target == '_hanza'} checked{/if}> - {t t="_blank"}
		</td>
	</tr>
	<tr>
		<td height="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="20">{t t="Password on private key"}</td>		
		<td><input type="text" name="VK_PASS" maxlength="100" class="defaultInputText" style="width:300px;" value='{if $hanza_data.VK_PASS}{$hanza_data.VK_PASS|escape:"html"}{/if}'></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF; border-left:15px solid #FFFFFF; border-right:15px solid #FFFFFF;">
	<tr>
		<td colspan="2">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td height="20" width="50%">{t t='Private key (from server)'}</td>	
				<td height="20" width="50%">{t t='Certificate (from bank)'}</td>		
			</tr>
			<tr>
				<td width="50%">
					<textarea name="KEY_PRIV" style="width:450px; font-size:9px;" rows="19">{if $hanza_data.KEY_PRIV}{$hanza_data.KEY_PRIV|escape:"html"}{/if}</textarea>
				</td>
				<td width="50%">
					<textarea name="KEY_PUBL" style="width:450px; font-size:9px;" rows="19">{if $hanza_data.KEY_PUBL}{$hanza_data.KEY_PUBL|escape:"html"}{/if}</textarea>
				</td>
			</tr>
			</table>
		</td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td bgcolor="#FFFFFF" height="5" width="150">						
		<input onClick="doSubmit('child_list'); return false;" type="button" value="{t t="Išsaugoti pakeitimus"}" class="defaultFormButton" style="margin:15px ">
		</td>		
		<td bgcolor="#FFFFFF" height="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
</form>
{error->LoadErrorArray assign='errors'}
{if $errors.payment_hanza.25 || $errors.payment_hanza.26 || $errors.payment_hanza.27}
	<script language="javascript1.4" type="text/javascript">
		var str = String;
		{if $errors.payment_hanza.25}str = "{t t='error_code_25'}\n";{/if}
		{if $errors.payment_hanza.26}str += "{t t='error_code_26'}\n";{/if}
		{if $errors.payment_hanza.27}str += "{t t='error_code_27'}";{/if}
		alert(str);
	</script>
{/if}